<?php
	require_once ("dataBase.php");
	connectDataBase("localhost", "root", "", "blueocean");
	$sql="SELECT imgurl FROM autoimgs";
	$result=mysql_query($sql);
	$imgurls=array();
	if(mysql_num_rows($result)>0){
		while($row=mysql_fetch_row($result)){
			array_push($imgurls,$row);
		}
		$arr=["backmsg"=>$imgurls];
	}else{
		$arr=["backmsg"=>"爆炸了"];
	}
	echo json_encode($arr);
?>